<template>
  <div class="bg">
    <div class="header">
      <img src="../img/head.svg">
      <div class="box">
        <div class="title" style="cursor: pointer;" @click="goHome">数智化控制中心</div>
      </div>
    </div>

    <div class="dp_con ">
      <div class="left zhaf_t3">
        <div class="card">
          <div class="title">
            <img class="icon1" src="../img/icon1.svg">
            <span>事件统计</span>
            <img class="icon2" src="../img/icon2.svg">
          </div>
          <div class="body">
            <div class="sjtj">
              <div class="item">
                <p class="text1">{{event_pastDay}}</p>
                <img src="../img/icon8.svg">
                <p class="text2">近1日</p>
              </div>
              <div class="item v2">
                <p class="text1">{{event_pastMonth}}</p>
                <img src="../img/icon9.svg">
                <p class="text2">近1月</p>
              </div>
              <div class="item">
                <p class="text1">{{event_pastYear}}</p>
                <img src="../img/icon8.svg">
                <p class="text2">近1年</p>
              </div>
            </div>
            <img class="sjtj-bg" src="../img/bg2.svg">
          </div>
        </div>
        <div class="card zhaf_h">
          <div class="title">
            <img class="icon1" src="../img/icon1.svg">
            <span>分类统计</span>
            <img class="icon2" src="../img/icon2.svg">
          </div>
          <div class="body">
            <div class="zw" style="height: 100%" ref="fltjChar"></div>
          </div>
        </div>
        <div class="card zhaf_h">
          <div class="title">
            <img class="icon1" src="../img/icon1.svg">
            <span>异常趋势</span>
            <img class="icon2" src="../img/icon2.svg">
          </div>
          <div class="body">
            <div class="zw" style="height: 100%" ref="ycChar"></div>
          </div>
        </div>
      </div>
      <div class="center">
        <div class="zhaf_t1">
          <div class="r1">
            <img src="../img/bg3.svg">
            <div class="box">
              <img src="../img/p7.jpg">
            </div>
          </div>
          <div class="r2">
            <img src="../img/p8.svg">
          </div>
        </div>
      </div>
      <div class="right zhaf_t3">
        <div class="card" style="height: calc(100% - 0.625vw)">
          <div class="title">
            <img class="icon1" src="../img/icon1.svg">
            <span>报警事件</span>
            <img class="icon2" src="../img/icon2.svg">
          </div>
          <div class="body">
            <div class="zhaf_t2">
              <ul>
                <li class="item" v-for="(event,idx) in event_unconfirmed" :key="idx">
                  <template v-if="event.show">
                    <div class="flex-0">
                      <img class="icon1" src="../img/icon10.svg">
                    </div>
                    <div class="w-100 info">
                      <img class="w-100" src="../img/bg4.svg">
                      <div class="box">
                        <p class="text1">发生时间：{{event.eventTime}}</p>
                        <p class="text1">类 型：{{event.eventType}}</p>
                        <p class="text1">摄 像 机：{{event.deviceName}}</p>
                        <p class="text1">位 置：{{event.address}}</p>
                        <p>
                          <a-radio-group :name="event.eventId" v-model="event.action">
                            <a-radio value="误报">误报</a-radio>
                            <a-radio value="已知">已知</a-radio>
                            <a-radio value="解除">解除</a-radio>
                          </a-radio-group>
                        </p>
                        <div class="btn_box">
                          <button @click="showDetail(event)">查看详情</button>
                          <button @click="eventConfirm(event)">确认报警</button>
                        </div>
                      </div>
                    </div>
                  </template>
                </li>
              </ul>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="footer">
      <img src="../img/footer.svg">
    </div>

    <eventDetail ref="eventDetail"></eventDetail>
  </div>
</template>

<script>
import {initTheme} from '@/components/SettingDrawer/settingConfig'
import defaultSettings from '@/config/defaultSettings'
import {SysMixin} from '@/mixins/SysMixin'
import * as echarts from 'echarts'
import Big from 'big.js'
import moment from 'moment';
import constant from '@/views/kzzx/utils/constant'
import eventDetail from '@/views/kzzx/zhaf/eventDetail'
import {
  iss_event_stat_window,
  mes_dongqing_summary,
  iss_event_stat_type,
  ems_electric_summary,
  ems_electric_history,
  dpm_oee, mes_dongqing_history,plant_state_stat,dpm_oee_trend,dpm_mtbf,data_alarm_trend,
  iss_event_summary,iss_event_type_unconfirmed,iss_event_confirm,image_original
} from '@/views/kzzx/utils/api'
import {
  getNowDaySTTime,
  getNowMonthSTTime,
  getNowYearSTTime,
  getMonthStartEnd,
  getMonthAgoToNowSTTime,
  getDecimalPlaces,
  getDaysAgo,
  getMonthAgo,
  formatDateTime, formatMonth, formatDate

} from '@/views/kzzx/utils/util'
import event from 'ant-design-vue/lib/_util/css-animation/Event'


export default {
  name: 'zhaf',
  components: {eventDetail},
  mixins:[SysMixin],
  beforeCreate () {

  },

  beforeDestroy () {
    if(this.timmer){
      console.log("清除定时器")
      clearTimeout(this.timmer)
    }
  },

  data () {
    return {
      visible:false,

      //分类统计图表
      fltjChar: null,

      //异常图表
      ycChar:null,

      //近1日
      event_pastDay:0,

      //近1月
      event_pastMonth:0,

      //近1年
      event_pastYear:0,

      //报警事件
      event_unconfirmed:[],

      //定时器
      timmer:null,

      //间隔
      interval:1000*60*10

    }
  },
  // 监听属性
  computed: {

  },
  created () {},
  mounted () {
    document.title = "智能安防"
    let that = this
    this.initTheme()
    that.$nextTick(() => {
      that.initChar()

      that.query()
    })
  },
  destroy () {

  },
  methods: {
    showModal() {
      this.visible = true;
    },
    initTheme(){
      let theme = localStorage.getItem(defaultSettings.localStorageThemeKey)
      initTheme(theme || defaultSettings.primaryTheme)
    },

    handleOk(e) {

      this.visible = false;

    },
    handleCancel(e) {
      this.visible = false;
    },

    initChar () {
      this.fltjChar = echarts.init(this.$refs.fltjChar)
      this.ycChar = echarts.init(this.$refs.ycChar)
    },
    query(){
      //查询事件累计
      this.queryEventSummary()

      //事件分类统计
      this.queryEventTypeSum()

      //事件异常趋势
      this.queryEventQS()

      //查询安防事件
      this.queryEventUnconfirmed()

      if(this.timmer){
        clearTimeout(this.timmer)
      }
      this.timmer = setTimeout(() => {
        this.query()
      }, this.interval)
    },
    /**
     * 查询事件累计
     */
    queryEventSummary(){
      iss_event_summary().then(res=>{
        console.log("接口：/api/iis/event/summary","方法:iss_event_summary",res)
        if (constant.successCode===res.code){
          this.event_pastDay=res.data.pastDay
          this.event_pastMonth=res.data.pastMonth
          this.event_pastYear=res.data.pastYear
        }
      })
    },
    /**
     * 事件按类型统计
     */
    queryEventTypeSum(){
      let m = getMonthAgo(11)
      iss_event_stat_type(m+"-01",formatDate(new Date())).then(res=>{
        console.log("接口：/api/iss/event/stat/type","方法:iss_event_stat_type",res)
        if (constant.successCode===res.code){
          let source = res.data.source
          let xAxisData=[]
          let seriesData=[]
          for(const item of source){
            xAxisData.push(item[0])
            seriesData.push(item[1])
          }
          this.setFltjChar(xAxisData,seriesData)
        }
      })
    },
    /**
     * 事件异常趋势
     */
    queryEventQS(){
      let month = getMonthAgo(11)
      iss_event_stat_window(month+"-01",formatDate(new Date()),constant.win_group,constant.winUnit_mo).then(res=>{
        console.log("接口：/api/iss/event/stat/window","方法:iss_event_stat_window",res)
        if(constant.successCode===res.code){
          let source = res.data.dataset.source
          let month = []
          let dataMap = new Map()
          let legendData = res.data.types
          for (const item of source) {
            month.push(item[0])

            for(let i=0;i<legendData.length;i++){
              let key = item[0]+"_"+legendData[i]

              if(dataMap.has(key)){
                dataMap.set(key,dataMap.get(key).plus(Big(item[i+1])))
              }else{
                dataMap.set(key,Big(item[i+1]))
              }
            }


          }
          let xAxisData = [...new Set(month)];

          let seriesData = new Map()

          for(const month of xAxisData){
            for(const type of legendData){
              let key = month+"_"+type
              let v = 0
              if(dataMap.has(key)){
                v = dataMap.get(key).toString()
              }

              let arr = []
              if(seriesData.has(type)){
                arr = seriesData.get(type)
                arr.push(v)
              }else{
                arr.push(v)
                seriesData.set(type,arr)
              }
            }
          }
          // console.log(seriesData)
          this.setYcChar (xAxisData,seriesData,legendData)
        }
      })
    },
    //安防事件
    queryEventUnconfirmed(){
      iss_event_type_unconfirmed().then(res=>{
        console.log("接口：/api/iss/event/type/unconfirmed","方法:iss_event_type_unconfirmed",res)
        if (constant.successCode===res.code){
          let data = res.data
          for (let item of data){
            let obj = {}
            obj['eventId']=item.id
            obj['eventImage']=item.image
            obj['eventTime']=item.time
            obj['eventType']=item.type
            obj['deviceId']=item.device.id
            obj['deviceName']=item.device.name
            obj['address'] = item.device.des
            obj['show']=true
            obj['filename']=item.images[0].filename
            obj['action']=constant.defaultEventAction
            if(obj['eventTime'].indexOf("T")>-1){
              obj['eventTime'] = obj['eventTime'].replace('T',' ')
              obj['eventTime'] = obj['eventTime'].substring(0,obj['eventTime'].indexOf("."))
            }
            this.event_unconfirmed.push(obj)

          }

        }
      })
    },
    //分类统计CHAR
    setFltjChar (xAxisData,seriesData) {
      let option = {
        grid:{top:'12%',bottom:'12%'},
        tooltip: {
          trigger: 'axis',
          axisPointer: {
            type: 'shadow',
            crossStyle: {
              color: '#999'
            }
          }
        },
        xAxis: {
          type: 'category',
          data: xAxisData,
          axisPointer: { type: 'shadow' },
          axisLine: { lineStyle: { color: '#ffffff' } }
        },
        yAxis: {
          type: 'value',
          axisLabel: { formatter: '{value}' },
          axisLine: { lineStyle: { color: '#ffffff', width: 1, type: 'dashed' } },
          splitLine: {
            lineStyle: {
              color: '#318BAB', // 设置线的颜色为蓝色
              width: 2,         // 设置线的宽度
              type: 'dashed'     // 设置线的类型为实线
            }
          }
        },
        series: [
          {
            data: seriesData,
            type: 'bar',
            color:'#04A3B5'
          }
        ]
      }
      this.fltjChar.setOption(option)
    },

    //异常趋势
    setYcChar(xAxisData,seriesData,legendData){
      let series = []

      for (let [key, value] of seriesData) {
        let obj = {
          name:'',
          type: 'bar',
          tooltip: {
            valueFormatter: function (value) {
              return value
            }
          },
          data:[]
        }
        obj.name=key
        obj.data=value
        series.push(obj)
      }

      let option = {
        grid:{
          top:'14%',
          bottom:'12%'
        },
        legend: {
          data:legendData,
          textStyle: { color: '#ffffff' }
        },
        tooltip: {
          trigger: 'axis',
          axisPointer: {
            type: 'shadow',
            crossStyle: {
              color: '#999'
            }
          }
        },

        xAxis: [
          {
            type: 'category',
            data: xAxisData,
            axisPointer: {
              type: 'shadow'
            },
            axisLine: { lineStyle: { color: '#ffffff' } }

          }
        ],
        yAxis: [
          {
            type: 'value',
            axisLabel: {
              formatter: '{value}'
            },
            axisLine: { lineStyle: { color: '#ffffff', width: 1, type: 'dashed' } },
            splitLine: {
              lineStyle: {
                color: '#318BAB', // 设置线的颜色为蓝色
                width: 2,         // 设置线的宽度
                type: 'dashed'     // 设置线的类型为实线
              }
            }
          }

        ],
        dataZoom: [{
          height:10,
          type: 'slider', // 内部滚动条
          start: 0,       // 初始滚动位置
          end: 100,         // 初始显示的部分（0% 到 50%）
          show:true,        // 初始显示的部分（0% 到 50%）
          bottom:0
        },],
        series: series
      }
      this.ycChar.setOption(option)
    },

    /**
     * 查看详情
     * @param event
     */
    showDetail(event){
      event['url'] = constant.image_original+event.filename
      this.handleEdit(event,'eventDetail','事件详情')

    },
    /**
     * 事件确认
     */
    eventConfirm(event){

      iss_event_confirm(event.eventId,event.action).then(res=>{
        console.log("事件确认",res)
        if(constant.successCode===res.code){
          event.show=false
        }
      })
    },
    goHome(){
      this.$router.push('/home')
      // window.location.href = constant.homeUrl
    }

  }

}
</script>

<style lang="less" scoped>
body {
  font-family: 'myriad-pro', 'Arial' !important;
  margin: 0;
  padding: 0;
}

.w-100 {
  width: 100%;
}

.flex {
  display: flex;
}

.flex-0 {
  flex: 0 0 auto;
}

.flex_c_c {
  display: flex;
  align-items: center;
  justify-content: center;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  margin: auto;
  max-width: 68.750vw;
}

ul, li, p {
  margin: 0;
  padding: 0;
  list-style: none;
}


.header {
  position: relative;
  box-sizing: content-box;
  height: 6.875vw;

  > img {
    width: 100%;
  }

  .box {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 99;

    .title {
      font-size: 2.188vw;
      font-weight: bold;
      text-align: center;
      margin-top: 2.240vw;
      text-shadow: 0 0.208vw 0.208vw rgba(0, 0, 0, 0.25);
      background: linear-gradient(180deg, #FFFFFF 0%, #83C3EF 83%, #0184DE 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

  }
}

.bg {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-size: 0.729vw;
  line-height: 1;
  background-image: url('../img/bg.png');
  background-repeat: no-repeat;
  background-position: top;
  background-size: cover;
  color: #fff;

}


.dp_con {
  position: relative;
  //background-image: url("../img/line2.svg");
  background-size: 97.6%;
  height: calc(100vh - 6.354vw);
  background-repeat: no-repeat;
  background-position: center bottom;
  padding: 0 0.833vw;
  display: flex;
  margin-top: -2.083vw;


  .left {
    width: 26.302vw;
    flex: 0 0 auto;
  }

  .right {
    width: 26.302vw;
    flex: 0 0 auto;
  }

  .center {
    width: 100%;
    padding: 0 0.833vw;
  }
}

.card {
  margin-bottom: 0.625vw;
  text-align: left;
  background: rgba(10, 63, 152, 0.2);
  position: relative;
  padding: 0.417vw;
  box-sizing: border-box;

  .title {
    display: flex;
    align-items: center;
    background-size: 100%;
    background-position: bottom;
    padding-bottom: 0.521vw;
    font-size: 0.938vw;
    font-weight: bold;
    margin-bottom: 0.313vw;
    background-repeat: no-repeat;
    text-shadow: 0 0 0.521vw #00b6ff;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 3.385vw;
      height: 0.156vw;
      background: #0086FF;
    }

    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 3.646vw;
      right: 2.604vw;
      height: 0.156vw;
      background: #083566;
    }

    .icon1 {
      margin-right: 0.625vw;
      width: 0.781vw;
    }

    .icon2 {
      position: absolute;
      width: 2.500vw;
      bottom: 0;
      right: 0;
    }
  }

  .body {
    position: relative;
    padding: 0.417vw;
    box-sizing: border-box;
    height: calc(100% - 2.396vw);

    > .img {
      position: absolute;
      width: 0.521vw;

      &.t1 {
        left: 0;
        top: 0;
      }

      &.t2 {
        right: 0;
        top: 0;
        transform: rotate(90deg);
      }

      &.t3 {
        left: 0;
        bottom: 0;
        transform: rotate(270deg);
      }

      &.t4 {
        right: 0;
        bottom: 0;
        transform: rotate(180deg);
      }
    }

  }
}

.height_50 {
  height: calc(50% - 0.625vw)
}

.height_3 {
  height: calc(33.33% - 0.625vw)
}

.height_6 {
  height: calc(66.66% - 0.625vw)
}

/* 整个滚动条 */
::-webkit-scrollbar {
  width: 0.313vw; /* 滚动条宽度 */
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
  background: rgba(241, 241, 241, 0); /* 轨道背景色 */
  border-radius: 0.313vw;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  background: #9dbfd2; /* 滑块背景色 */
  border-radius: 0.313vw;
}

/* 滚动条滑块悬停状态 */
::-webkit-scrollbar-thumb:hover {
  background: #555; /* 滑块悬停时的背景色 */
}


.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  img {
    display: block;
    margin: auto;
    width: 70.729vw;
  }
}

.sckg {
  display: flex;
  justify-content: space-between;

  .item {
    width: 4.688vw;
    text-align: center;

    img {
      width: 100%;
      display: block;
    }

    .text1 {
      position: relative;
      top: -2.604vw;
      font-weight: bold;
      font-size: 1.458vw;
      color: #FFFFFF;
      line-height: 1;
      background: linear-gradient(180deg, #FFFFFF 0%, #55D0FF 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      margin-top: -0.781vw;
    }

    .text2 {
      font-size: 0.625vw;
    }
  }
}

.sckg_tb {
  height: calc(100% - 6.458vw);
  margin-top: 0.625vw;
}

.sbxj {
  display: flex;
  justify-content: space-between;

  .item {
    flex: 1;
    text-align: center;

    img {
      width: 3.646vw;
    }

    .text1 {
      font-size: 0.573vw;
      margin: 0.521vw 0;
    }

    .text2 {
      font-size: 1.042vw;

      small {
        font-size: 0.677vw;
      }
    }
  }
}

.sbxj_tb {
  height: calc(100% - 7.813vw);
  margin-top: 0.625vw;
}


.znaf_tb {
  display: flex;
  height: 100%;
}

.ydtj {
  display: flex;

  .icon1 {
    width: 5.729vw;
    margin: 1.042vw 1.302vw 0 0.625vw;
  }

  .item {
    position: relative;
    font-size: 0.729vw;
    margin-bottom: 0.625vw;

    img {
      width: 100%;
      display: block;
    }

    .text1 {
    }

    .text2 {
      font-size: 1.250vw;
      font-weight: bold;
      position: relative;
      top: -0.052vw;
    }

    .text3 {
      margin-left: 0.625vw;
    }

    .info {
      position: absolute;
      left: 1.354vw;
      right: 0.729vw;
      top: 0;
      bottom: 0;
      display: flex;
      align-items: center;
    }
  }
}

.ydtj_tb {
  height: calc(100% - 8.125vw);
}

.sbjx {
  display: flex;
  justify-content: space-around;

  .item {
    text-align: center;
    flex: 1;

    div {
      height: 5.208vw;
    }

    p {
      margin-top: 0.625vw;
    }
    &.v2{
      div{
        height: 6.771vw
      }
    }
  }
}


.sbjx_tb {
  height: calc(100% - 7.292vw);
  margin-top: 0.625vw;

}

.zw {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
}

.sblyl {
  height: 100%;
}


.sbxj_tb {
  height: calc(100% - 8.594vw);
  margin-top: 0.625vw;
}


.xnzb_c {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;

  .r1 {
    width: 21.354vw;

    .item {
      margin: 2.083vw 0;
    }

    .line {
      height: 0.156vw;
      background: rgba(255, 255, 255, 0.28);
      display: flex;
      justify-content: space-between;
      align-items: center;

      &::before, &::after {
        content: "";
        width: 1.146vw;
        height: 0.156vw;
        background: #FED9A6;
        box-shadow: 0 0 0.313vw 0 #FED9A6;
      }
    }

    .box {
      margin: 0.417vw 0;
      background: #003E59;
      border: 0.052vw solid #00F9FF;
      height: 4.167vw;
      display: flex;
      align-items: center;
      padding: 0 1.250vw 0 0;
      box-sizing: border-box;

      img {
        width: 4.167vw;
        height: 4.167vw;
        margin-right: 0.625vw;
      }

      .text1 {
        font-size: 0.885vw;
      }

      .text2 {
        font-size: 0.729vw;
        margin-top: 0.625vw;
      }

      .text3 {
        font-size: 1.667vw;
        color: #12E4F5;
        font-weight: bold;
      }

      &.v2 {
        background: #0B2248;
        border: 0.052vw solid #2F6EDD;

        .text3 {
          color: #2F6EDD;
        }
      }
    }
  }

  .r2 {
    position: relative;

    .bg2 {
      width: 26.823vw;
      display: block;
      padding: 2.083vw 2.083vw 0 2.083vw;
      box-sizing: border-box;
    }

    .item {
      text-align: center;
      position: absolute;
      z-index: 1;
      top: 0;
      left: 0;

      .text1 {
        width: 3.333vw;
        height: 3.333vw;
        text-align: center;
        line-height: 3.333vw;
        background-image: url("../img/icon7.svg");
        border-radius: 100%;
        margin: auto;
        font-size: 1.042vw;
      }

      .text2 {
        margin-top: 0.417vw;
      }

      &:nth-child(1) {
        top: 35%;
      }

      &:nth-child(2) {
        top: 0;
        left: 13%;
      }

      &:nth-child(3) {
        top: 0;
        left: 75%;
      }

      &:nth-child(4) {
        top: 38%;
        left: 87%;
      }
    }
  }
}


.scgl-title {
  text-align: center;
  margin-bottom: 0.625vw;
}

.scgl_t1 {
  display: flex;
  flex-wrap: wrap;

  .item {
    width: 50%;
    height: 50%;
    padding: 0.625vw 0;
    box-sizing: border-box;
    display: flex;

    .flex-0 {
      height: 100%;
      width: 50%;
    }

    .flex_c_c {
      justify-content: flex-start;
      padding-left: 0.625vw;
    }
  }
}

.scgl_t2 {
  .tb {
    height: calc(100% - 2.292vw);
  }
}


.c_img {
  position: absolute;
  width: 50%;
  left: 25%;
  top: 10%;

  img {
    width: 100%;
  }
}


.scgl_t3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;

  .item {
    width: 16.667vw;
    height: 4.635vw;
    background-image: url("../img/p5.svg");
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.042vw;

    .text1 {
      margin-right: 1.042vw;
    }

    .text2 {
      font-size: 2.188vw;
      font-weight: bold;
      color: #0BF9FE;

      small {
        font-size: 0.833vw;
        font-weight: 500;
        color: #fff;
      }
    }

    &.v2 {
      background-image: url("../img/p6.svg");

      .text2 {
        color: #07E96C;
      }
    }
  }
}


.sjtj {
  display: flex;
  justify-content: space-around;
  position: relative;
  z-index: 1;

  .item {
    width: 7.083vw;
    text-align: center;

    .text1 {
      font-size: 1.406vw;
      color: #FFFFFF;
      letter-spacing: 0.052vw;
      font-style: normal;
      text-transform: none;
    }

    .text2 {
      color: rgba(255, 255, 255, 0.7);
      width: 7.083vw;
      line-height: 1.458vw;
      background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, #4E3B01 49%, rgba(0, 0, 0, 0) 100%);
      position: relative;
      margin-top: 0.625vw;

      &::after, &::before {
        content: "";
        width: 100%;
        height: 0.052vw;
        background: linear-gradient(90deg, rgba(87, 69, 0, 0) 0%, #FFCB00 49%, rgba(126, 101, 0, 0) 100%);
        position: absolute;
        top: 0;
        left: 0;
      }

      &::before {
        bottom: 0;
        top: auto;
      }
    }

    img {
      width: 5.417vw;
      margin-top: -1.042vw;
    }

    &.v2 {
      margin-top: 3.646vw;

      img {
        width: 6.458vw;
      }

      .text2 {
        background: linear-gradient(270deg, rgba(0, 0, 0, 0.02) 0%, #01434E 49%, rgba(0, 0, 0, 0) 100%);

        &::after, &::before {
          background: linear-gradient(90deg, rgba(0, 46, 87, 0) 0%, #00C2FF 49%, rgba(0, 104, 126, 0) 100%);
        }
      }
    }
  }
}

.sjtj-bg {
  width: 100%;
  margin-top: -100%;
  position: relative;
  top: -3.490vw;
}


.zhaf_t1 {
  padding: 2.083vw 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-sizing: border-box;

  .r1 {
    height: 50%;
    position: relative;

    img {
      height: 100%;
      display: block;
    }

    .box {
      position: absolute;
      z-index: 2;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      padding: 1.250vw;

      img {
        width: 100%;
        height: 100%;

      }
    }
  }

  .r2 {
    height: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;

    img {
      height: 90%;
      display: block;
    }
  }
}

.zhaf_t2 {
  overflow: auto;
  height: 100%;

  ul {

    li {
      display: flex;
      margin-bottom: 0.625vw;
      position: relative;

      &::before {
        content: "";
        position: absolute;
        left: 0.781vw;
        height: 100%;
        background: #ff0000;
        top: 1.042vw;
        width: 0.052vw;
      }

      &:nth-last-child(1) {
        &::before {
          content: "";
          position: absolute;
          left: 0.781vw;
          height: 0;
          background: #ff0000;
          top: 1.042vw;
          width: 0.052vw;
        }
      }

      .icon1 {
        width: 1.510vw;
        margin-right: 0.625vw;
      }

      .info {
        position: relative;

        .box {
          position: absolute;
          z-index: 2;
          left: 0;
          right: 0;
          top: 0;
          bottom: 0;
          padding: 1.250vw;
          display: flex;
          flex-direction: column;
          justify-content: space-around;

          .btn_box {
            position: absolute;
            right: 1.250vw;
            bottom: 1.250vw;

            button {
              width: 5.521vw;
              height: 1.667vw;
              background: #2F51FF;
              border-radius: 0.208vw 0.208vw 0.208vw 0.208vw;
              display: flex;
              align-items: center;
              justify-content: center;
              border: none;
              color: #fff;
              margin-top: 0.625vw;
              cursor: pointer;

              &:hover {
                background: #4a68ff;
              }
            }
          }
        }
      }
    }
  }
}

.zhaf_t3{
  width: 29.688vw !important;
}

.dp_con {
  position: relative;
  z-index: 9;

  .left.v2 {
    width: 55%;
    padding-right: 0.417vw;
  }

  .right.v2 {
    width: 45%;
    padding-left: 0.417vw;
  }
}

.ydtj_t1 {
  height: 100%;
  display: block;
  width: 100%;
  object-fit: cover;
  padding-bottom: 0.625vw;
  box-sizing: border-box;
}

.ydtj_t2{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  .item{
    background-image: url("../img/bg6.svg");
    width: 13.333vw;
    height: 5.156vw;
    background-size: cover;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;

    p{
      padding-left: 4.167vw;
      width: 100%;
      box-sizing: border-box;
    }
    .text1{
      font-weight: bold;
      font-size: 1.354vw;
      letter-spacing: 0.104vw;
      background: linear-gradient(180deg, #FFFFFF 0%, #20F14E 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      margin-bottom: 0.417vw;
    }
    &:nth-child(1),&:nth-child(2),&:nth-child(3){
      margin-bottom: 1.042vw;
      background-image: url("../img/bg5.svg");
      .text1{
        background: linear-gradient(180deg, #FFFFFF 0%, #0BF9FE 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }
    }
  }
}

.p-8{
  margin: 0 -0.417vw;
  .w-100{
    padding: 0 0.417vw;
    box-sizing: border-box;
  }
}

.scgl_t4{
  height: calc(60% - 0.625vw);margin-bottom: 0.625vw;padding-top: 2.604vw;box-sizing: border-box
}
.zhaf_h{
  height: calc(50% - 8.646vw - 0.625vw)
}
.ydtj_h{
  height: calc(50% - 8.333vw)
}

.ant-radio-wrapper{
  background-color: transparent !important;
  color: #ffffff !important;
  font-size: 10px !important;
}
.ant-radio-group {
  background-color: transparent !important;
}

</style>



